from app.utils.database import create_connection

def check_users_table():
    conn = create_connection()
    cursor = conn.cursor()
    
    try:
        cursor.execute('DESCRIBE users')
        columns = cursor.fetchall()
        print('Users表结构:')
        for col in columns:
            print(col)
    except Exception as e:
        print(f"查询表结构时出错: {e}")
    finally:
        cursor.close()
        conn.close()

if __name__ == "__main__":
    check_users_table()